package com.nbgs.demo.service.Impl;

import com.nbgs.demo.controller.info.Form;
import com.nbgs.demo.dao.LoginMapper;
import com.nbgs.demo.service.LoginService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;
@Service
@Slf4j
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public Form login(Form form, HttpSession httpSession) {
        log.info(httpSession.getAttribute("cardNum").toString());
        return loginMapper.login(form);
    }
}
